package org.dandar3.abc.dialog.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends ActionBarActivity {
	/*
	 * (non-Javadoc)
	 * @see android.support.v7.app.ActionBarActivity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		/*
		 * Super...
		 */
		super.onCreate(savedInstanceState);
		
		/*
		 * View...
		 */
		setContentView(R.layout.activity_main);
		
		/*
		 * Show dialog button...
		 */
		Button bt_show_dialog = (Button) findViewById(R.id.bt_show_dialog);
		bt_show_dialog.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View p_view) {
				startActivity(new Intent(MainActivity.this, DialogActivity.class));
			}
		});
		
		bt_show_dialog.performClick();
	}
}